package ext;

import com.jfinal.config.Constants;
import com.jfinal.config.Handlers;
import com.jfinal.config.Interceptors;
import com.jfinal.config.Plugins;
import com.jfinal.config.Routes;
import com.jfinal.ext.interceptor.SessionInViewInterceptor;
import com.ykt.mall.interceptor.ShopInterceptor;


public class WebConfig extends Config {

	@Override
	public void configConstant(Constants me) {
		super.configConstant(me);
		me.setBaseViewPath("/template");
	}

	@Override
	public void configRoute(Routes me) {
		super.configRoute(me);
	}

	@Override
	public void configPlugin(Plugins me) {
		super.configPlugin(me);
	}

	@Override
	public void configInterceptor(Interceptors me) {
		me.add(new SessionInViewInterceptor());
		//me.add(new ShopInterceptor());
		super.configInterceptor(me);
	}

	@Override
	public void configHandler(Handlers me) {
		super.configHandler(me);
	}
	
}
